home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / catman / p_man / cat3 / qlineedit.Z / qlineedit
Encoding:
Text File  |  1998-10-28  |  34.7 KB  |  529 lines

  1.  
  2.  
  3.  
  4.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       QLineEdit - Simple line editor for inputting text
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.       #include <qlineedit.h>
  13.  
  14.       Inherits QWidget.
  15.  
  16.     PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrrssss
  17.       QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt (((( QQQQWWWWiiiiddddggggeeeetttt ****    _p_a_r_e_n_t====0000,,,, ccccoooonnnnsssstttt    cccchhhhaaaarrrr **** _n_a_m_e====0000 ))))
  18.       ~~~~QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt ()
  19.       ccccoooonnnnsssstttt    cccchhhhaaaarrrr**** tttteeeexxxxtttt (((()))) ccccoooonnnnsssstttt
  20.       iiiinnnntttt mmmmaaaaxxxxLLLLeeeennnnggggtttthhhh    (((()))) ccccoooonnnnsssstttt
  21.       vvvvooooiiiidddd sssseeeettttMMMMaaaaxxxxLLLLeeeennnnggggtttthhhh (((( iiiinnnntttt ))))
  22.       vvvvooooiiiidddd sssseeeettttFFFFrrrraaaammmmeeee    (((( bbbboooooooollll ))))
  23.       bbbboooooooollll ffffrrrraaaammmmeeee (((())))    ccccoooonnnnsssstttt
  24.       eeeennnnuuuummmm EEEEcccchhhhooooMMMMooooddddeeee    {{{{ NNNNoooorrrrmmmmaaaallll,,,, NNNNooooEEEEcccchhhhoooo,,,, PPPPaaaasssssssswwwwoooorrrrdddd }}}}
  25.       vvvvooooiiiidddd sssseeeettttEEEEcccchhhhooooMMMMooooddddeeee (((( EEEEcccchhhhooooMMMMooooddddeeee ))))
  26.       EEEEcccchhhhooooMMMMooooddddeeee eeeecccchhhhooooMMMMooooddddeeee (((()))) ccccoooonnnnsssstttt
  27.       vvvvooooiiiidddd sssseeeettttVVVVaaaalllliiiiddddaaaattttoooorrrr (((( QQQQVVVVaaaalllliiiiddddaaaattttoooorrrr **** ))))
  28.       QQQQVVVVaaaalllliiiiddddaaaattttoooorrrr**** vvvvaaaalllliiiiddddaaaattttoooorrrr    (((()))) ccccoooonnnnsssstttt
  29.       vvvviiiirrrrttttuuuuaaaallll QQQQSSSSiiiizzzzeeee    ssssiiiizzzzeeeeHHHHiiiinnnntttt (((()))) ccccoooonnnnsssstttt
  30.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd sssseeeettttEEEEnnnnaaaabbbblllleeeedddd (((( bbbboooooooollll ))))
  31.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd sssseeeettttFFFFoooonnnntttt (((( ccccoooonnnnsssstttt QQQQFFFFoooonnnntttt &&&& ))))
  32.       vvvvooooiiiidddd sssseeeettttSSSSeeeelllleeeeccccttttiiiioooonnnn (((( iiiinnnntttt,,,, iiiinnnntttt ))))
  33.       vvvvooooiiiidddd sssseeeettttCCCCuuuurrrrssssoooorrrrPPPPoooossssiiiittttiiiioooonnnn (((( iiiinnnntttt ))))
  34.       iiiinnnntttt ccccuuuurrrrssssoooorrrrPPPPoooossssiiiittttiiiioooonnnn (((())))    ccccoooonnnnsssstttt
  35.       bbbboooooooollll vvvvaaaalllliiiiddddaaaatttteeeeAAAAnnnnddddSSSSeeeetttt ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr ****,,,, iiiinnnntttt,,,, iiiinnnntttt,,,,    iiiinnnntttt ))))
  36.  
  37.     PPPPuuuubbbblllliiiicccc SSSSlllloooottttssss
  38.       vvvvooooiiiidddd sssseeeettttTTTTeeeexxxxtttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
  39.       vvvvooooiiiidddd sssseeeelllleeeeccccttttAAAAllllllll (((())))
  40.       vvvvooooiiiidddd ddddeeeesssseeeelllleeeecccctttt    (((())))
  41.       vvvvooooiiiidddd cccclllleeeeaaaarrrrVVVVaaaalllliiiiddddaaaattttoooorrrr (((())))
  42.       vvvvooooiiiidddd iiiinnnnsssseeeerrrrtttt ((((    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** ))))
  43.       vvvvooooiiiidddd cccclllleeeeaaaarrrr (((())))
  44.  
  45.     SSSSiiiiggggnnnnaaaallllssss
  46.       vvvvooooiiiidddd tttteeeexxxxttttCCCChhhhaaaannnnggggeeeedddd (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** ))))
  47.       vvvvooooiiiidddd rrrreeeettttuuuurrrrnnnnPPPPrrrreeeesssssssseeeedddd (((())))
  48.  
  49.     PPPPrrrrooootttteeeecccctttteeeedddd MMMMeeeemmmmbbbbeeeerrrrssss
  50.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeePPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
  51.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeeMMMMoooovvvveeeeEEEEvvvveeeennnntttt ((((    QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
  52.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeeRRRReeeelllleeeeaaaasssseeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
  53.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd mmmmoooouuuusssseeeeDDDDoooouuuubbbblllleeeeCCCClllliiiicccckkkkEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** ))))
  54.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd kkkkeeeeyyyyPPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt **** ))))
  55.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ffffooooccccuuuussssIIIInnnnEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** ))))
  56.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ffffooooccccuuuussssOOOOuuuuttttEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** ))))
  57.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ppppaaaaiiiinnnnttttEEEEvvvveeeennnntttt (((( QQQQPPPPaaaaiiiinnnnttttEEEEvvvveeeennnntttt    **** ))))
  58.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd ttttiiiimmmmeeeerrrrEEEEvvvveeeennnntttt (((( QQQQTTTTiiiimmmmeeeerrrrEEEEvvvveeeennnntttt    **** ))))
  59.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd rrrreeeessssiiiizzzzeeeeEEEEvvvveeeennnntttt (((( QQQQRRRReeeessssiiiizzzzeeeeEEEEvvvveeeennnntttt **** ))))
  60.  
  61.  
  62.  
  63.      Page 1                         (printed 9/22/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
  71.  
  72.  
  73.  
  74.       vvvviiiirrrrttttuuuuaaaallll vvvvooooiiiidddd lllleeeeaaaavvvveeeeEEEEvvvveeeennnntttt (((( QQQQEEEEvvvveeeennnntttt **** ))))
  75.       vvvviiiirrrrttttuuuuaaaallll bbbboooooooollll eeeevvvveeeennnntttt (((( QQQQEEEEvvvveeeennnntttt ****    ))))
  76.       bbbboooooooollll hhhhaaaassssMMMMaaaarrrrkkkkeeeeddddTTTTeeeexxxxtttt (((())))    ccccoooonnnnsssstttt
  77.       QQQQSSSSttttrrrriiiinnnngggg mmmmaaaarrrrkkkkeeeeddddTTTTeeeexxxxtttt (((())))    ccccoooonnnnsssstttt
  78.       vvvvooooiiiidddd rrrreeeeppppaaaaiiiinnnnttttAAAArrrreeeeaaaa (((( iiiinnnntttt,,,, iiiinnnntttt ))))
  79.  
  80.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  81.       The QLineEdit    widget is a simple line    editor for inputting
  82.       text.
  83.  
  84.       The default QLineEdit    object has its own frame as specified
  85.       by the Windows/Motif style guides, you can turn off the
  86.       frame    by calling setFrame( FALSE ).
  87.  
  88.       It draws the text using its own color    group:
  89.       colorGroup().text() on colorGroup().base(). The cursor and
  90.       frame    use other colors from same color group,    of course.
  91.  
  92.       QLineEdit can    display    the content of itself in three ways,
  93.       depending on the current echo    mode. The echo modes available
  94.       are:
  95.  
  96.      default.
  97.       Normal - display characters as they are entered. This    is the
  98.  
  99.       NoEcho - do not display anything.
  100.  
  101.      entered.
  102.       Password -
  103.         display    asterisks instead of the characters actually
  104.  
  105.       The default key bindings are described in keyPressEvent();
  106.       they cannot be customized except by inheriting the class.
  107.  
  108.                   [[[[IIIImmmmaaaaggggeeee OOOOmmmmiiiitttttttteeeedddd]]]]
  109.  
  110.                   [[[[IIIImmmmaaaaggggeeee OOOOmmmmiiiitttttttteeeedddd]]]]
  111.  
  112.       See also: QMultiLineEdit, QLabel, QComboBox, GUI Design
  113.       Handbook: Field, Entry, and GUI Design Handbook: Field,
  114.       Required.
  115.  
  116.       Examples:  xform/xform.cpp layout/layout.cpp
  117.       widgets/widgets.cpp
  118.  
  119.      MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDOOOOCCCCUUUUMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  120.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt (((( QQQQWWWWiiiiddddggggeeeetttt **** ppppaaaarrrreeeennnntttt====0000,,,,    ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnnaaaammmmeeee====0000 ))))
  121.       Constructs a line editor with    an empty edit buffer.
  122.  
  123.       The cursor position is set to    the start of the line, the
  124.       maximum buffer size to 32767 characters, and the buffer
  125.       contents to "".
  126.  
  127.  
  128.  
  129.      Page 2                         (printed 9/22/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
  137.  
  138.  
  139.  
  140.       The _p_a_r_e_n_t and _n_a_m_e arguments    are sent to the    QWidget
  141.       constructor.
  142.  
  143.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::~~~~QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt (((())))
  144.       Destroys the line editor.
  145.  
  146.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::cccclllleeeeaaaarrrr (((()))) [[[[ssssllllooootttt]]]]
  147.       Syntax sugar for setText( "" ), provided to match no-
  148.       argument signals.
  149.  
  150.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::cccclllleeeeaaaarrrrVVVVaaaalllliiiiddddaaaattttoooorrrr (((()))) [[[[ssssllllooootttt]]]]
  151.       This slot is equivalent to setValidator( 0 ).
  152.  
  153.      iiiinnnntttt QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ccccuuuurrrrssssoooorrrrPPPPoooossssiiiittttiiiioooonnnn (((()))) ccccoooonnnnsssstttt
  154.       Returns the current cursor position for this line edit.
  155.  
  156.       See also: setCursorPosition().
  157.  
  158.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ddddeeeesssseeeelllleeeecccctttt (((()))) [[[[ssssllllooootttt]]]]
  159.       Deselects all    text (i.e. removes marking) and    leaves the
  160.       cursor at the    current    position.
  161.  
  162.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::EEEEcccchhhhooooMMMMooooddddeeee QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::eeeecccchhhhooooMMMMooooddddeeee(((()))) ccccoooonnnnsssstttt
  163.       Returns the current echo mode    of the line edit.
  164.  
  165.       See also: setEchoMode().
  166.  
  167.      bbbboooooooollll QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::eeeevvvveeeennnntttt (((( QQQQEEEEvvvveeeennnntttt **** eeee    )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
  168.       Don't    use it if you don't mean it.
  169.  
  170.       Reimplemented    from QObject.
  171.  
  172.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ffffooooccccuuuussssIIIInnnnEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt    **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  173.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  174.       Handles the cursor blinking.
  175.  
  176.       Reimplemented    from QWidget.
  177.  
  178.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ffffooooccccuuuussssOOOOuuuuttttEEEEvvvveeeennnntttt (((( QQQQFFFFooooccccuuuussssEEEEvvvveeeennnntttt **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  179.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  180.       Handles the cursor blinking and selection copying.
  181.  
  182.       Reimplemented    from QWidget.
  183.  
  184.      bbbboooooooollll QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ffffrrrraaaammmmeeee (((()))) ccccoooonnnnsssstttt
  185.       Returns TRUE if the line edit    draws itself inside a frame,
  186.       FALSE    if it draws itself without any frame.
  187.  
  188.       The default is to use    a frame.
  189.  
  190.       See also: setFrame().
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                         (printed 9/22/98)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
  203.  
  204.  
  205.  
  206.      bbbboooooooollll QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::hhhhaaaassssMMMMaaaarrrrkkkkeeeeddddTTTTeeeexxxxtttt (((()))) ccccoooonnnnsssstttt [[[[pppprrrrooootttteeeecccctttteeeedddd]]]]
  207.       Returns TRUE if part of the text has been marked by the user
  208.       (e.g.    by clicking and    dragging).
  209.  
  210.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::iiiinnnnsssseeeerrrrtttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnneeeewwwwTTTTeeeexxxxtttt )))) [[[[ssssllllooootttt]]]]
  211.       Removes any currently    selected text, inserts _n_e_w_T_e_x_t,
  212.       validates the    result and if it is valid, sets    it as the new
  213.       contents of the line edit.
  214.  
  215.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::kkkkeeeeyyyyPPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQKKKKeeeeyyyyEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  216.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  217.       The key press    event handler converts a key press to some
  218.       line editor action.
  219.  
  220.       If return or enter is    pressed    and the    current    text is    valid
  221.       (or if the validator can make    the text valid), the signal
  222.       returnPressed    is emitted.
  223.  
  224.       Here are the default key bindings:
  225.  
  226.        _L_e_f_t    _A_r_r_o_w  Move the    cursor one character leftwards
  227.  
  228.        _R_i_g_h_t _A_r_r_o_w    Move the cursor    one character rightwards
  229.  
  230.        _B_a_c_k_s_p_a_c_e  Delete the character to the left of the cursor
  231.  
  232.        _H_o_m_e     Move the cursor to the    beginning of the line
  233.  
  234.        _E_n_d    Move the cursor    to the end of the line
  235.  
  236.        _D_e_l_e_t_e  Delete the character    to the right of    the cursor
  237.  
  238.        _S_h_i_f_t - _L_e_f_t    _A_r_r_o_w  Mark text one character leftwards
  239.  
  240.        _S_h_i_f_t - _R_i_g_h_t _A_r_r_o_w    Mark text one character    rightwards
  241.  
  242.        _C_o_n_t_r_o_l-_A  Move the cursor to the beginning of the line
  243.  
  244.        _C_o_n_t_r_o_l-_B  Move the cursor one character leftwards
  245.  
  246.        _C_o_n_t_r_o_l-_C  Copy the marked text to the clipboard.
  247.  
  248.        _C_o_n_t_r_o_l-_D  Delete the character to the right    of the cursor
  249.  
  250.        _C_o_n_t_r_o_l-_E  Move the cursor to the end of the    line
  251.  
  252.        _C_o_n_t_r_o_l-_F  Move the cursor one character rightwards
  253.  
  254.        _C_o_n_t_r_o_l-_H  Delete the character to the left of the cursor
  255.  
  256.        _C_o_n_t_r_o_l-_V  Paste the    clipboard text into line edit.
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                         (printed 9/22/98)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
  269.  
  270.  
  271.  
  272.        _C_o_n_t_r_o_l-_X  Cut the marked text, copy    to clipboard.
  273.  
  274.       All other keys with valid ASCII codes    insert themselves into
  275.       the line.
  276.  
  277.       Reimplemented    from QWidget.
  278.  
  279.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::lllleeeeaaaavvvveeeeEEEEvvvveeeennnntttt    (((( QQQQEEEEvvvveeeennnntttt **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll pppprrrrooootttteeeecccctttteeeedddd]]]]
  280.       Handles selection copying.
  281.  
  282.       Reimplemented    from QWidget.
  283.  
  284.      QQQQSSSSttttrrrriiiinnnngggg QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmaaaarrrrkkkkeeeeddddTTTTeeeexxxxtttt (((()))) ccccoooonnnnsssstttt [[[[pppprrrrooootttteeeecccctttteeeedddd]]]]
  285.       Returns the text marked by the user (e.g. by clicking    and
  286.       dragging), or    0 if no    text is    marked.
  287.  
  288.       See also: hasMarkedText().
  289.  
  290.      iiiinnnntttt QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmaaaaxxxxLLLLeeeennnnggggtttthhhh (((()))) ccccoooonnnnsssstttt
  291.       Returns the current maximum length of    the text in the
  292.       editor.
  293.  
  294.       See also: setMaxLength().
  295.  
  296.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmoooouuuusssseeeeDDDDoooouuuubbbblllleeeeCCCClllliiiicccckkkkEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  297.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  298.       Handles mouse    double click events for    this widget.
  299.  
  300.       Reimplemented    from QWidget.
  301.  
  302.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmoooouuuusssseeeeMMMMoooovvvveeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** eeee ))))    [[[[vvvviiiirrrrttttuuuuaaaallll
  303.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  304.       Handles mouse    move events for    the line editor, primarily for
  305.       marking text.
  306.  
  307.       Reimplemented    from QWidget.
  308.  
  309.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmoooouuuusssseeeePPPPrrrreeeessssssssEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  310.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  311.       Handles mouse    press events for this widget.
  312.  
  313.       Reimplemented    from QWidget.
  314.  
  315.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::mmmmoooouuuusssseeeeRRRReeeelllleeeeaaaasssseeeeEEEEvvvveeeennnntttt (((( QQQQMMMMoooouuuusssseeeeEEEEvvvveeeennnntttt **** eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  316.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  317.       Handles mouse    release    events for this    widget.
  318.  
  319.       Reimplemented    from QWidget.
  320.  
  321.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ppppaaaaiiiinnnnttttEEEEvvvveeeennnntttt    (((( QQQQPPPPaaaaiiiinnnnttttEEEEvvvveeeennnntttt ****    eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  322.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  323.       Handles paint    events for the line editor.
  324.  
  325.  
  326.  
  327.      Page 5                         (printed 9/22/98)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
  335.  
  336.  
  337.  
  338.       Reimplemented    from QWidget.
  339.  
  340.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::rrrreeeeppppaaaaiiiinnnnttttAAAArrrreeeeaaaa (((( iiiinnnntttt ffffrrrroooommmm,,,, iiiinnnntttt ttttoooo )))) [[[[pppprrrrooootttteeeecccctttteeeedddd]]]]
  341.       Repaints all characters from _f_r_o_m to _t_o. If cursorPos    is
  342.       between from and to, ensures that cursorPos is visible.
  343.  
  344.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::rrrreeeessssiiiizzzzeeeeEEEEvvvveeeennnntttt (((( QQQQRRRReeeessssiiiizzzzeeeeEEEEvvvveeeennnntttt    **** )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  345.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  346.       Handles resize events    for this widget.
  347.  
  348.       Reimplemented    from QWidget.
  349.  
  350.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::rrrreeeettttuuuurrrrnnnnPPPPrrrreeeesssssssseeeedddd (((()))) [[[[ssssiiiiggggnnnnaaaallll]]]]
  351.       This signal is emitted when the return or enter key is
  352.       pressed.
  353.  
  354.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeelllleeeeccccttttAAAAllllllll (((()))) [[[[ssssllllooootttt]]]]
  355.       Selects all text (i.e. marks it) and moves the cursor    to the
  356.       end. Useful when a default value has been inserted. If the
  357.       user types before clicking on    the widget the selected    text
  358.       will be erased.
  359.  
  360.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttCCCCuuuurrrrssssoooorrrrPPPPoooossssiiiittttiiiioooonnnn (((( iiiinnnntttt nnnneeeewwwwPPPPoooossss ))))
  361.       Set the cursor position for this line    edit to    _n_e_w_P_o_s and
  362.       repaint accordingly.
  363.  
  364.       See also: cursorPosition().
  365.  
  366.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttEEEEcccchhhhooooMMMMooooddddeeee (((( EEEEcccchhhhooooMMMMooooddddeeee mmmmooooddddeeee ))))
  367.       Sets the echo    mode of    the line edit widget.
  368.  
  369.       The echo modes available are:
  370.  
  371.      default.
  372.       Normal - display characters as they are entered. This    is the
  373.  
  374.       NoEcho - do not display anything.
  375.  
  376.      entered.
  377.       Password -
  378.         display    asterisks instead of the characters actually
  379.  
  380.       It is    always possible    to cut and paste any marked text; only
  381.       the widget's own display is affected.
  382.  
  383.       See also: echoMode().
  384.  
  385.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttEEEEnnnnaaaabbbblllleeeedddd    (((( bbbboooooooollll eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
  386.       \reimplemented.
  387.  
  388.       Reimplemented    from QWidget.
  389.  
  390.  
  391.  
  392.  
  393.      Page 6                         (printed 9/22/98)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
  401.  
  402.  
  403.  
  404.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttFFFFoooonnnntttt (((( ccccoooonnnnsssstttt QQQQFFFFoooonnnntttt &&&& ffff )))) [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
  405.       \reimplemented.
  406.  
  407.       Reimplemented    from QWidget.
  408.  
  409.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttFFFFrrrraaaammmmeeee ((((    bbbboooooooollll eeeennnnaaaabbbblllleeee ))))
  410.       Sets the line    edit to    draw itself inside a two-pixel frame
  411.       if _e_n_a_b_l_e is TRUE, and to draw itself    without    any frame if
  412.       _e_n_a_b_l_e is FALSE.
  413.  
  414.       The default is TRUE.
  415.  
  416.       See also: frame() and    QComboBox.
  417.  
  418.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttMMMMaaaaxxxxLLLLeeeennnnggggtttthhhh (((( iiiinnnntttt    mmmm ))))
  419.       Set the maximum length of the    text in    the editor. If the
  420.       text is currently too    long, it is chopped off    at the limit.
  421.       Any marked text will be unmarked. The    cursor position    is set
  422.       to 0 and the first part of the string    is shown.
  423.  
  424.       See also: maxLength().
  425.  
  426.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttSSSSeeeelllleeeeccccttttiiiioooonnnn (((( iiiinnnntttt    ssssttttaaaarrrrtttt,,,, iiiinnnntttt lllleeeennnnggggtttthhhh ))))
  427.       Sets the marked area of this line edit to start at _s_t_a_r_t and
  428.       be _l_e_n_g_t_h characters long.
  429.  
  430.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttTTTTeeeexxxxtttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** tttteeeexxxxtttt )))) [[[[ssssllllooootttt]]]]
  431.       Sets the line    editor text to _t_e_x_t, clears the    selection and
  432.       moves    the cursor to the end of the line.
  433.  
  434.       If necessary the text    is truncated to    fit maxLength().
  435.  
  436.       See also: text().
  437.  
  438.       Examples:  xform/xform.cpp
  439.  
  440.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::sssseeeettttVVVVaaaalllliiiiddddaaaattttoooorrrr (((( QQQQVVVVaaaalllliiiiddddaaaattttoooorrrr **** vvvv ))))
  441.       Sets this line edit to accept    input only as accepted by _v.
  442.  
  443.       If _v == 0, remove the    currently set input validator. The
  444.       default is no    input validator    (ie. any input is accepted up
  445.       to maxLength()).
  446.  
  447.       See also: validator()    and QValidator.
  448.  
  449.      QQQQSSSSiiiizzzzeeee QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ssssiiiizzzzeeeeHHHHiiiinnnntttt (((()))) ccccoooonnnnsssstttt    [[[[vvvviiiirrrrttttuuuuaaaallll]]]]
  450.       Returns a size which fits the    contents of the    line edit.
  451.  
  452.       The width returned tends to be enough    for about 15-20
  453.       characters.
  454.  
  455.       Examples:  layout/layout.cpp widgets/widgets.cpp
  456.  
  457.  
  458.  
  459.      Page 7                         (printed 9/22/98)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))    TTTTrrrroooollllllll TTTTeeeecccchhhh AAAASSSS ((((9999 JJJJuuuullllyyyy 1111999999998888))))    QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt((((3333qqqqtttt))))
  467.  
  468.  
  469.  
  470.       Reimplemented    from QWidget.
  471.  
  472.      ccccoooonnnnsssstttt cccchhhhaaaarrrr    **** QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::tttteeeexxxxtttt (((()))) ccccoooonnnnsssstttt
  473.       Returns a pointer to the text    currently in the line.
  474.  
  475.       If you need to store the text, you should make a copy    of it.
  476.       This can conveniently    be done    with a QString object:
  477.  
  478.           QString s    = lineEd->text();  // makes a copy and stores it in s
  479.  
  480.       See also: setText().
  481.  
  482.       Examples:  xform/xform.cpp
  483.  
  484.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::tttteeeexxxxttttCCCChhhhaaaannnnggggeeeedddd (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr ****    )))) [[[[ssssiiiiggggnnnnaaaallll]]]]
  485.       This signal is emitted every time the    text has changed. The
  486.       argument is the new text.
  487.  
  488.      vvvvooooiiiidddd QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::ttttiiiimmmmeeeerrrrEEEEvvvveeeennnntttt    (((( QQQQTTTTiiiimmmmeeeerrrrEEEEvvvveeeennnntttt ****    eeee )))) [[[[vvvviiiirrrrttttuuuuaaaallll
  489.       pppprrrrooootttteeeecccctttteeeedddd]]]]
  490.       Not used.
  491.  
  492.       Reimplemented    from QObject.
  493.  
  494.      bbbboooooooollll QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::vvvvaaaalllliiiiddddaaaatttteeeeAAAAnnnnddddSSSSeeeetttt (((( ccccoooonnnnsssstttt cccchhhhaaaarrrr **** nnnneeeewwwwTTTTeeeexxxxtttt,,,, iiiinnnntttt
  495.       nnnneeeewwwwPPPPoooossss,,,, iiiinnnntttt nnnneeeewwwwMMMMaaaarrrrkkkkAAAAnnnncccchhhhoooorrrr,,,, iiiinnnntttt nnnneeeewwwwMMMMaaaarrrrkkkkDDDDrrrraaaagggg ))))
  496.       Validates and    perhaps    sets this line edit to contain _n_e_w_T_e_x_t
  497.       with the cursor at position newPos, with marked text from
  498.       _n_e_w_M_a_r_k_A_n_c_h_o_r    to _n_e_w_M_a_r_k_D_r_a_g.    Returns    TRUE if    it changes the
  499.       line edit and    FALSE if it doesn't.
  500.  
  501.       If _n_e_w_T_e_x_t contains more than    one line is longer than
  502.       maxLength(), validateAndSet()    truncates it before testing
  503.       its validity.
  504.  
  505.       Repaints and emits textChanged() if appropriate.
  506.  
  507.      QQQQVVVVaaaalllliiiiddddaaaattttoooorrrr    **** QQQQLLLLiiiinnnneeeeEEEEddddiiiitttt::::::::vvvvaaaalllliiiiddddaaaattttoooorrrr (((()))) ccccoooonnnnsssstttt
  508.       Returns a pointer to the current input validator, or 0 if no
  509.       validator has    been set.
  510.  
  511.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  512.       hhhhttttttttpppp::::////////wwwwwwwwwwww....ttttrrrroooollllllll....nnnnoooo////qqqqtttt////qqqqlllliiiinnnneeeeeeeeddddiiiitttt....hhhhttttmmmmllll
  513.  
  514.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  515.       Copyright 1992-1997 Troll Tech AS.  See the LICENSE file
  516.       included in the distribution for a complete license
  517.       statement.
  518.  
  519.      AAAAUUUUTTTTHHHHOOOORRRR
  520.       Generated automatically from the source code.
  521.  
  522.  
  523.  
  524.  
  525.      Page 8                         (printed 9/22/98)
  526.  
  527.  
  528.  
  529.